A Simple and General Problem and its Optimal Randomized Online Algorithm Design with Competitive Analysis

نویسنده

  • Ying Zhang
چکیده

The online algorithm design was proposed to handle the caching problem when the future information is unknown [3]. And currently, it draws more and more attentions from the researchers from the areas of microgrid, where the production of renewables are unpredictable, [5], [4], etc. In this note, we present a framework of randomized online algorithm design for the simple and tractable problem. This framework hopes to provide a tractable design to design a randomized online algorithm, which can be proved to achieve the best competitive ratio by Yao’s Principle [6]. I. A SIMPLE BUT GENERAL PROBLEM REQUIRING ONLINE SOLUTION In this note, we consider a simple problem, which needs to be solved in the online manner. Suppose its input can be denoted by the parameter p ∈ P and its online algorithm can be denoted by s ∈ S. For example, in the ski rental problem [2], [3], p represents how many times the player goes to ski totally, and s represents how many days the player rents the ski before he buys the ski. In our consideration, p and s can be numbers, vectors or matrixes. 1 We use the probability distributions of p and s to denote the randomized input and the randomized online algorithm. Obviously the optimal offline cost is uniquely determined by the input p, which we denote as Costoff(p), while the online cost is jointly determined by the input p and the algorithm s, which we denote as Coston(s, p). The ratio of the online cost and offline cost R(s, p) = Coston(s,p) Costoff evaluates how well the online algorithm s performs on the input p: a smaller R(s, p) means better s, and R(s, p) ≥ 1. We assume we can obtain a closed form of R(s, p). 2 II. A LOWER BOUND FOR THE COMPETITIVE RATIO BY Yao’s Principle For a given randomized online algorithm Ar, we can obtain its competitive ratio by CR(Ar) = maxinput Coston Costoff . To show that this randomized online algorithm is the best in terms of competitive ratio, technically, we need to show that given any other randomized online algorithm, the competitive ratio is larger. This is nontrivial because it is difficult to enumerate all possible randomized online algorithms in the design space, or we can think that it’s difficult to enumerate all distributions. 1The problem should be simple enough such that we can characterize its input and its online algorithm by a limited number of parameters. 2Again, since the problem is so simple In the following analysis, we denote the randomized online algorithm and the randomized input by two randomized variables S with the distribution f(s) and P with the distribution g(p), which are supported by S and P respectively. For convenience, we define two functions Ug(s) and Vf (p) as follows, • Given the randomized input g(p), Ug(s) represents the expectation of the ratio when the online algorithm is deterministically s, i.e.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Online Network Design Algorithms via Hierarchical Decompositions

We develop a new approach for online network design and obtain improved competitive ratios for several problems. Our approach gives natural deterministic algorithms and simple analyses. At the heart of our work is a novel application of embeddings into hierarchically well-separated trees (HSTs) to the analysis of online network design algorithms — we charge the cost of the algorithm to the cost...

متن کامل

A firefly algorithm for solving competitive location-design problem: a case study

This paper aims at determining the optimal number of new facilities besides specifying both the optimal location and design level of them under the budget constraint in a competitive environment by a novel hybrid continuous and discrete firefly algorithm. A real-world application of locating new chain stores in the city of Tehran, Iran, is used and the results are analyzed. In addition, several...

متن کامل

Machinery Optimal Layout Design of a Production System with the Aim of Reducing Transportation Costs Using Imperialist Competitive Algorithm

In this study, solutions for machinery layout with the aim of reducing transportation costs will be discussed. To do this, imperialist competitive algorithm (ICA), which is a very complicated and effective meta-heuristic algorithm is introduced. In the offered algorithm, different kinds of machinery layout are considered in single-row as country and then the best possible layout is developed ba...

متن کامل

Online Vertex Cover and Matching: Beating the Greedy Algorithm

In this paper, we explicitly study the online vertex cover problem, which is a natural generalization of the well-studied ski-rental problem. In the online vertex cover problem, we are required to maintain a monotone vertex cover in a graph whose vertices arrive online. When a vertex arrives, all its incident edges to previously arrived vertices are revealed to the algorithm. For bipartite grap...

متن کامل

One to Rule Them All: A General Randomized Algorithm for Buffer Management with Bounded Delay

We give a memoryless scale-invariant randomized algorithm Mix-R for buffer management with bounded delay that is e/(e − 1)-competitive against an adaptive adversary, together with better performance guarantees for many restricted variants, including the s-bounded instances. In particular, Mix-R attains the optimum competitive ratio of 4/3 on 2-bounded instances. Both Mix-R and its analysis are ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1504.05305  شماره 

صفحات  -

تاریخ انتشار 2015